package org.hcyspartnoc.demo.pojo.dto.system;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;

@Data
@NoArgsConstructor
public class SysUserWxRegisterDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "密码不能为空")
    @Length(min = 30, max = 50, message = "请输入正确的jsCode")
    private String jsCode;
    @NotBlank
    private  String account;
    @NotBlank
    private  String userName;
    @NotBlank
    private  String password;
    @NotNull
    private  Integer roleIds;

}
